import request from '@/utils/request'

// 查询挑战明细记录列表
export function listChallengeDetail(query) {
    return request({
        url: '/admin/challengeDetail/list',
        method: 'get',
        params: query
    })
}

// 查询挑战明细记录详细
export function getChallengeDetail(id) {
    return request({
        url: '/admin/challengeDetail/' + id,
        method: 'get'
    })
}

// 新增挑战明细记录
export function addChallengeDetail(data) {
    return request({
        url: '/admin/challengeDetail',
        method: 'post',
        data: data
    })
}

// 修改挑战明细记录
export function updateChallengeDetail(data) {
    return request({
        url: '/admin/challengeDetail',
        method: 'put',
        data: data
    })
}

// 删除挑战明细记录
export function delChallengeDetail(id) {
    return request({
        url: '/admin/challengeDetail/' + id,
        method: 'delete'
    })
}
